package com.jjb.www.http.api;

import com.hjq.http.annotation.HttpIgnore;
import com.hjq.http.config.IRequestApi;

import java.util.List;

/**
 * @author CRG
 * @date :2023/12/15 9:39
 * @description:
 */
public class AnsweringDetailsApi implements IRequestApi {
    @HttpIgnore
    private String paper_id;
    private String view_type;

    public AnsweringDetailsApi setView_type(String view_type) {
        this.view_type = view_type;
        return this;
    }

    public AnsweringDetailsApi setPaper_id(String paper_id) {
        this.paper_id = paper_id;
        return this;
    }

    @Override
    public String getApi() {
        return "/api/question/v2/paper/viewPaper/"+paper_id;
    }
    public static class Bean{

        private Integer question_id;
        private Integer question_type;
        private Integer type;
        private Integer order_number;
        private String answer_sort;
        private Integer is_answer;
        private Integer is_true;
        private String title;
        private String background_title;

        private String answer;
        private String type_test;
        private String true_answer;
        private List<QuestionAnswerDTO> question_answer;
        private List<QuestionSonListDTO>question_son_list;

        public Integer getQuestion_id() {
            return question_id;
        }

        public void setQuestion_id(Integer question_id) {
            this.question_id = question_id;
        }

        public Integer getQuestion_type() {
            return question_type;
        }

        public void setQuestion_type(Integer question_type) {
            this.question_type = question_type;
        }

        public Integer getType() {
            return type;
        }

        public void setType(Integer type) {
            this.type = type;
        }

        public Integer getOrder_number() {
            return order_number;
        }

        public void setOrder_number(Integer order_number) {
            this.order_number = order_number;
        }

        public String getAnswer_sort() {
            return answer_sort;
        }

        public void setAnswer_sort(String answer_sort) {
            this.answer_sort = answer_sort;
        }

        public Integer getIs_answer() {
            return is_answer;
        }

        public void setIs_answer(Integer is_answer) {
            this.is_answer = is_answer;
        }

        public Integer getIs_true() {
            return is_true;
        }

        public void setIs_true(Integer is_true) {
            this.is_true = is_true;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getAnswer() {
            return answer;
        }

        public void setAnswer(String answer) {
            this.answer = answer;
        }

        public String getType_test() {
            return type_test;
        }

        public void setType_test(String type_test) {
            this.type_test = type_test;
        }

        public String getTrue_answer() {
            return true_answer;
        }

        public void setTrue_answer(String true_answer) {
            this.true_answer = true_answer;
        }

        public List<QuestionAnswerDTO> getQuestion_answer() {
            return question_answer;
        }

        public void setQuestion_answer(List<QuestionAnswerDTO> question_answer) {
            this.question_answer = question_answer;
        }

        public String getBackground_title() {
            return background_title;
        }

        public void setBackground_title(String background_title) {
            this.background_title = background_title;
        }

        public List<QuestionSonListDTO> getQuestion_son_list() {
            return question_son_list;
        }

        public void setQuestion_son_list(List<QuestionSonListDTO> question_son_list) {
            this.question_son_list = question_son_list;
        }

        public static class QuestionAnswerDTO {
            private String option;
            private Integer sort;
            private Integer is_true;
            private Integer order_number;
            private Integer type;

            public String getOption() {
                return option;
            }

            public void setOption(String option) {
                this.option = option;
            }

            public Integer getSort() {
                return sort;
            }

            public void setSort(Integer sort) {
                this.sort = sort;
            }

            public Integer getIs_true() {
                return is_true;
            }

            public void setIs_true(Integer is_true) {
                this.is_true = is_true;
            }

            public Integer getOrder_number() {
                return order_number;
            }

            public void setOrder_number(Integer order_number) {
                this.order_number = order_number;
            }

            public Integer getType() {
                return type;
            }

            public void setType(Integer type) {
                this.type = type;
            }
        }

        public static class QuestionSonListDTO{

            private Integer question_id;
            private Integer type;
            private String answer_sort;
            private Integer is_answer;
            private Integer is_true;
            private String title;
            private String answer;
            private String type_test;
            private String true_answer;
            private List<QuestionAnswerDTO> question_answer;

            public Integer getQuestion_id() {
                return question_id;
            }

            public void setQuestion_id(Integer question_id) {
                this.question_id = question_id;
            }

            public Integer getType() {
                return type;
            }

            public void setType(Integer type) {
                this.type = type;
            }

            public String getAnswer_sort() {
                return answer_sort;
            }

            public void setAnswer_sort(String answer_sort) {
                this.answer_sort = answer_sort;
            }

            public Integer getIs_answer() {
                return is_answer;
            }

            public void setIs_answer(Integer is_answer) {
                this.is_answer = is_answer;
            }

            public Integer getIs_true() {
                return is_true;
            }

            public void setIs_true(Integer is_true) {
                this.is_true = is_true;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getAnswer() {
                return answer;
            }

            public void setAnswer(String answer) {
                this.answer = answer;
            }

            public String getType_test() {
                return type_test;
            }

            public void setType_test(String type_test) {
                this.type_test = type_test;
            }

            public String getTrue_answer() {
                return true_answer;
            }

            public void setTrue_answer(String true_answer) {
                this.true_answer = true_answer;
            }

            public List<QuestionAnswerDTO> getQuestion_answer() {
                return question_answer;
            }

            public void setQuestion_answer(List<QuestionAnswerDTO> question_answer) {
                this.question_answer = question_answer;
            }

            public static class QuestionAnswerDTO {
                private String option;
                private Integer sort;
                private Integer is_true;
                private Integer type;

                public String getOption() {
                    return option;
                }

                public void setOption(String option) {
                    this.option = option;
                }

                public Integer getSort() {
                    return sort;
                }

                public void setSort(Integer sort) {
                    this.sort = sort;
                }

                public Integer getIs_true() {
                    return is_true;
                }

                public void setIs_true(Integer is_true) {
                    this.is_true = is_true;
                }

                public Integer getType() {
                    return type;
                }

                public void setType(Integer type) {
                    this.type = type;
                }
            }
        }
    }
}
